<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String appPath = request.getContextPath();
	String allPath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort();
	pageContext.setAttribute("appPath", appPath);
	pageContext.setAttribute("allPath", allPath);
%>
<jsp:include page="common/header.jsp" flush="true"/>

<div class="mid">
	<jsp:include page="common/left.jsp" flush="true"/>
  <div class="right">
    <div class="position">
      <a href="<%=appPath%>/index.htm">首页</a>><a href="<%=appPath%>/libnews.htm?action=page&sortMapId=${sortmap.sortMapId}">${sortmap.value}</a>
    </div>    
    <div class="list_cont">
      <ul>
		<c:forEach var="libnews" items="${list}" varStatus="status">
			<li>
				<span style="float:right">${libnews.pubDateString}</span>
				<a href="<%=appPath%>/libnews.htm?action=single&id=${libnews.libnewsId}">${libnews.title}</a>
			</li>
		</c:forEach>
      </ul>
		<form name="mainForm" id="mainFormID" action="libnews.htm" method="post">
			<input type="hidden" id="action" name="action" value="page"/>
			<input type="hidden" id="sortMapId" name="sortMapId" value="${sortMapId}"/>
			<jsp:include page="common/page.jsp" flush="true"/>
		</form>        
  </div>
  <div style="clear:both"></div>
</div>
<jsp:include page="common/foot.jsp" flush="true"/>
